import http from '../index';

export const getAll = (data) => http({
    url: '/api/dicts?' + data,
    method: 'get'
})

export const addData = (data) => http({
    url: '/api/dicts',
    method: 'post',
    data
})

export const editData = (data) => http({
    url: '/api/dicts',
    method: 'put',
    data
})

export const delData = (data) => http({
    url: '/api/dicts/' + data,
    method: 'delete',
    data
})

export const getData = (data) => http({
    url: '/api/dicts/getByInput?' + data,
    method: 'get',
})